<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>test</title>
    </head>
    <body>
        <script language="JavaScript">
            /*//var callResult = flashObject.myFunction("my name");
             function newFood(){
             var callResult = flashObject.addFood("123");
             }*/
            function callFromFlash(){
                var a = thisMovie("swfm").addFood("mode/furniture/desk004.swf",001);
                //alert(a);
            }
            
            function hello(v){
                alert(v);
            }
            
            //thisMoivie 参数：是swf文件 的id   
            function thisMovie(movieName){
                if (navigator.appName.indexOf("Microsoft") != -1) {
                    return window[movieName]
                }
                else {
                    return document[movieName]
                }
            }
        </script>
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
			codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" 
			width="550" height="400"
			id="swfm">
            <param name="movie" value="compare.swf" />
			<param name="allowScriptAccess" value="always" />
			<param name="allowFullScreen" value="false" />
			<param name="quality" value="high" />
			<param name="wmode" value="transparent" />
            <embed name="swfm" src="compare.swf" 
				   quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" 
				   type="application/x-shockwave-flash" 
				   width="550" height="400" 
				   allowScriptAccess="always" wmode="transparent">
            </embed>
        </object>
        <input type="button" value="clickMe" onclick="callFromFlash();">
    </body>
</html><!--<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="flashObject" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="550" height="400">
<param name="movie" value="compare.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<param name="menu" value="false">
<embed name="flashObject" src="compare.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="550" height="400" quality="High" wmode="transparent">
</embed>
</object>
<input type="button" value="addFood" onclick="newFood()"/>-->
